var arr = [12,34,32,89,4];

// 方案1
let min1 = Math.min.apply(Math, arr);
console.log(min1)


// 方案2
let min2 = arr.reduce((accumulator, currentValue) => Math.min(accumulator, currentValue));
console.log(min2)